"""djangoProject URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.contrib import admin
from django.urls import path
from timeholder.views import views,project,login
from web.views import home as web_home
from web.views import account as web_account
urlpatterns = [
    #timeholder：
    path('admin/', admin.site.urls),
    path('timeholder/clock/', views.clock),
    path('project/',project.project ,name='project'),
    path('project/add/',project.project_add,name='project_add'),
    path('project/update/',project.project_update,name='project_update'),
    path('project/delete/',project.project_delete,name='project_delete'),
    path('timeholder/data/', views.data),

    #web：
    path('register/', web_account.register,name='register'),#注册功能
    path('sms/code/', web_account.send_sms,name='send_sms'),
    path('login/sms/', web_account.login_sms, name='login_sms'),#短信验证码登录
    path('web/login/',web_account.login,name='web_login'),
    path('login/', web_account.login, name='login'),#邮箱登录
    path('image/code/', web_account.image_code, name='image_code'),# 邮箱登录
    path('web/index/', project.project, name='index'),  # 主页
    path('logout/', web_account.logout, name='logout'),  # 用户注销
    path('clock/', views.clock,name='clock'),
    path('data/',views.data,name='data'),
    path('updateDate/',views.updateDate,name='updateDate'),
    path('updateSummary/',views.updateSummary,name="updateSummary")
]

